package J1_12;

import java.util.Scanner;

public class J112task2 {
    public static void main(String[] args) {
        Long l;
        boolean b=false;
        int x;
        Scanner scanner =new Scanner(System.in);
        System.out.print("输入11位长度的整数:");
        l=scanner.nextLong();
        String str;
        str = l.toString();
     x=str.length()-1;
        if (str.charAt(0)==49&&str.charAt(1)==51||str.charAt(1)==53||str.charAt(1)==56){
            for (int i=0;i<5;i++){

                System.out.println(x);
                if (str.charAt(x)!=str.charAt(x-1)){
                    b=false;
                    break;
                }
                else  b=true;
            }
        }
        System.out.println(b);

    }
}
